package com.example.demo;

import com.example.demo.controller.CalcController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class DemoApplication {

    public static void main(String[] args) {
        ApplicationContext context=(ApplicationContext)SpringApplication.run(DemoApplication.class, args);
        CalcController bean = context.getBean(CalcController.class);
    }

}
